import request from '@/utils/request'

// 查询行政处罚列表
export function listAdministrativeSanction(query) {
  return request({
    url: '/medical/administrativeSanction/list',
    method: 'get',
    params: query
  })
}

// 查询行政处罚详细
export function getAdministrativeSanction(id) {
  return request({
    url: '/medical/administrativeSanction/' + id,
    method: 'get'
  })
}

// 新增行政处罚
export function addAdministrativeSanction(data) {
  return request({
    url: '/medical/administrativeSanction',
    method: 'post',
    data: data
  })
}

// 修改行政处罚
export function updateAdministrativeSanction(data) {
  return request({
    url: '/medical/administrativeSanction',
    method: 'put',
    data: data
  })
}

// 删除行政处罚
export function delAdministrativeSanction(id) {
  return request({
    url: '/medical/administrativeSanction/' + id,
    method: 'delete'
  })
}
